<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>百度，谷歌，爱淘宝</title>
		<style type="text/css">
			#biaodan #biaodan2 #text1{
				width: 200px;
				height: 25px;
			}
		</style>
		<script type="text/javascript">
			function sousuo(sou){
				var a=document.getElementById("photo");
				if(sou.id=="baidu"){
					a.setAttribute("src","../homework1/images/baidu_web.png");
				}else if(sou.id=="google"){
					a.setAttribute("src","../homework1/images/google_web-444.png");
				}else{
					a.setAttribute("src","../homework1/images/taobao_shopping-446.png");
				}
			}
		</script>
	</head>
	<body>
		<div id="scroll">
			<img src="../homework1/images/baidu_web.png" alt="图片" id="photo"/>
			
		</div>
		<div id="biaodan">
			<form action="" method="post" id="biaodan2">
				<input type="text" name="text1" id="text1" />
				<input type="submit" value="搜索"/>
				<p>
				<label for="baidu">百度</label>
				<input type="radio" name="name1" id="baidu" onclick="sousuo(this)"/>
				<label for="google">谷歌</label>
				<input type="radio" name="name1" id="google" onclick="sousuo(this)"/>
				<label for="taobao">爱淘宝</label>
				<input type="radio" name="name1" id="taobao" onclick="sousuo(this)"/>
				</p>
			</form>
		</div>
	</body>
</html>
